package com.stylefeng.guns.modular.capitalBudget.service;

import com.stylefeng.guns.core.exception.GunsException;
import com.stylefeng.guns.modular.system.model.CapitalBudget;
import com.baomidou.mybatisplus.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-16
 */
public interface ICapitalBudgetService extends IService<CapitalBudget> {

    /**
     * 下载
     * @param list
     * @param revDate
     * @param platform
     * @return
     */
    public Map<String,Object> load(List<CapitalBudget> list,String revDate,String platform,String platformName);

    /**
     * 上传
     * @param file
     * @throws GunsException
     * @throws Exception
     */
    public void adds(MultipartFile file)throws GunsException,Exception;

    /**
     * 下载模板

     * @return
     */
    public Map<String,Object> download();

}
